package sk.tuke.constraintbuilder.builder.resourcemodel;

/**
 * Created by IntelliJ IDEA.
 * User: Brano
 * Date: 16.4.2011
 * Time: 22:30
 */
public class TypeDeclarationElement extends ContainerElement{
    private String type;
    private String name;

    public TypeDeclarationElement(String type, String name) {
        this.type = type;
        this.name = name;
    }

    @Override
    public String generateXML() {
        return
        "<typedeclaration" + addXMLAttr("type", type) + addXMLAttr("name", name) + ">"
                + generateXMLSubElements() +
        "</typedeclaration>";

    }
}
